* {
    padding: 0;
    margin: 0;
}
::-webkit-scrollbar {
    width: 2px;
}
html, body {
    height: 100%;
}
.wrapper {
    width: 600px;
    margin: 0 auto;
    border: 1px solid #eee;
    height: 100%;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}
.wrapper .header {
    background-color: grey;
    text-align: center;
    color: #fff;
    height: 40px;
    line-height: 40px;
    font-weight: 700;
}
.wrapper .content {
    overflow-x: hidden;
    overflow-y: scroll;
    height: calc(100% - 110px);
    line-height: 30px;
    padding: 10px;
}
.wrapper .mine {
    float: right;
    width: 500px;
    /* text-align: right; */
}
.wrapper .robot {
    float: left;
    width: 500px;
}
.wrapper .avitor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: 100% 100%;
    vertical-align: middle;
    background-position: center;
}
.mine .avitor {
    float: right;
    background-image: url('../image/3.png');
}
.robot .avitor {
    float: left;
    background-image: url('../image/dog1.jpg');
}
.text {
    max-width: 250px;
    font-size: 16px;
    padding: 0 10px;
    border-radius: 3px;
    /* border: 1px solid #fff; */
}
.mine .text {
    float: right;
    background-color: greenyellow;
}
.robot .text {
    float: left;
    background-color: #fff;
}
.inp {
    width: 100%;
    height: 50px;
    line-height: 50px;
    position: absolute;
    bottom: 0px;
    font-size: 0;
    text-align: center;
    /* padding: 0 10px; */
    background-color: #ddd;
    /* vertical-align: middle; */
}
.inp input {
    width: calc(100% - 80px);
    height: 30px;
    line-height: 30px;
    border: none;
    outline: none;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}
.inp button {
    width: 60px;
    height: 30px;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: #ccc;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}
.inp button:hover {
    background: #aaa;
}